package com.grape.springbootgradle20220520.network;

import java.rmi.RemoteException;
import java.time.LocalDateTime;
import java.time.ZoneId;

/**
 * @Author pan_jin
 * @Description: $
 * @Date: 2022/5/25 9:06
 * @Version: 1.0.0
 * @Slogan: 梦想还是要有的万一实现了呢
 */
public class WorkClockService implements WorkClock{
    @Override
    public LocalDateTime getLocalDateTime(String zoneId) throws RemoteException {
        return LocalDateTime.now(ZoneId.of(zoneId)).withNano(0);
    }
}